#include <48func.h>
void handler(int signum){
    printf("before signum = %d\n", signum);
    sleep(5);
    printf("after signum = %d\n", signum);
}
int main(int argc, char *argv[])
{
    //signal(SIGINT,handler);
   // char buf[1024] = {0};
   // read(STDIN_FILENO,buf,sizeof(buf));
   // printf("buf = %s\n", buf);
    struct sigaction act;
    memset(&act,0,sizeof(act));
    act.sa_handler = handler;
    sigaction(SIGINT,&act,NULL);
    sigaction(SIGQUIT,&act,NULL);
    while(1){

    }
    return 0;
}

